package com.zy.mapper;

import com.zy.bean.TAdminRole;
import com.zy.bean.TAdminRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TAdminRoleMapper {
    long countByExample(TAdminRoleExample example);

    int deleteByExample(TAdminRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TAdminRole record);

    int insertSelective(TAdminRole record);

    List<TAdminRole> selectByExample(TAdminRole example);

    TAdminRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TAdminRole record, @Param("example") TAdminRoleExample example);

    int updateByExample(@Param("record") TAdminRole record, @Param("example") TAdminRoleExample example);

    int updateByPrimaryKeySelective(TAdminRole record);

    int updateByPrimaryKey(TAdminRole record);

    List<Integer> listRoleIdByAdmin(String id);

    int saveAdminRole(@Param("roleIds") Integer[] roleId, @Param("adminId") String adminId);

    void delAdminid(String adminId);


    int delAminRoleId(@Param("roleIds") Integer[] roleId, @Param("adminId") String adminId);
}